package com.two.service.shopcar.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.two.service.shopcar.entity.Shopcar;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.two.service.shopcar.vo.RestautantVo;
import com.two.service.shopcar.vo.ShopCarVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 汪瑞明
 * @since 2022-09-01
 */
@Mapper
public interface ShopcarMapper extends BaseMapper<Shopcar> {


    List<Object> findAll(@Param("usermonicker") String usermonicker);

    List<RestautantVo> selRestaurant(@Param("rid") String rid,@Param("usermonicker") String usermonicker);

    List findGoodsNum( @Param("usermonicker")String usermonicker);

    // Integer insertGoods(ShopCarVo shopCarVo);

    int deleteGoods(@Param("id") String id);


    // List<Shopcar> findAll(QueryWrapper<Shopcar> wrapper);
}
